package com.itheima.day20.demo07;

import java.util.stream.Stream;

public class StreamParallel {
    public static void main(String[] args) {
        Stream<Integer> stream = Stream.of(10, 20, 30, 40, 50);
        Stream<Integer> parallel = stream.parallel();
        parallel.forEach(System.out::println);
    }
}
